package com.hzvictory.hotel_system.pojo.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
//import com.hzvictory.hotel_system.common.annotation.Excel;
import com.hzvictory.hotel_system.common.core.domain.BaseEntity;

/**
 * 用户表对象 user
 *
 * @author hzvictory
 * @date 2025-08-07
 */
public class User extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 用户名 */
    //@Excel(name = "用户名")
    private String username;

    /** 密码 */
    //@Excel(name = "密码")
    private String password;

    /** 手机号 */
    //@Excel(name = "手机号")
    private String phone;

    /** 邮箱 */
    //@Excel(name = "邮箱")
    private String email;

    /** 注册时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    //@Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date registerTime;

    /** 用户状态：1正常，0禁用 */
    //@Excel(name = "用户状态：1正常，0禁用")
    private Long status;

    /** 是否为管理员：1是，0否 */
    //@Excel(name = "是否为管理员：1是，0否")
    private Long isAdmin;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setUsername(String username)
    {
        this.username = username;
    }

    public String getUsername()
    {
        return username;
    }

    public void setPassword(String password)
    {
        this.password = password;
    }

    public String getPassword()
    {
        return password;
    }

    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }

    public void setEmail(String email)
    {
        this.email = email;
    }

    public String getEmail()
    {
        return email;
    }

    public void setRegisterTime(Date registerTime)
    {
        this.registerTime = registerTime;
    }

    public Date getRegisterTime()
    {
        return registerTime;
    }

    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }

    public void setIsAdmin(Long isAdmin)
    {
        this.isAdmin = isAdmin;
    }

    public Long getIsAdmin()
    {
        return isAdmin;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("username", getUsername())
                .append("password", getPassword())
                .append("phone", getPhone())
                .append("email", getEmail())
                .append("registerTime", getRegisterTime())
                .append("status", getStatus())
                .append("isAdmin", getIsAdmin())
                .toString();
    }
}
